package com.tedu._07interceptor.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @PostMapping("/reg")
    public String reg(){
        System.out.println("UserController:reg()方法调用了,处理用户注册");
        return "注册成功";
    }
    @PostMapping("/login")
    public String login(){
        System.out.println("UserController:login()方法调用了,处理用户登录");
        return "登录成功";
    }
}
